import http from "@/api/axios";

export const getWarehousePageApi = (data: Base.GeneraDataType) => {
  return http({
    method: "post",
    url: "/base/biz/bizWarehouse/page",
    data
  });
};

export const getListApi = (data: Base.GeneraDataType) => {
  return http({
    method: "post",
    url: "/base/biz/bizWarehouse/listByStatus",
    data
  });
};
export const addWarehouseApi = (data: Base.GeneraDataType) => {
  return http({
    method: "post",
    url: "/base/biz/bizWarehouse/addBizWarehouse",
    data
  });
};
export const editWarehouseApi = (data: Base.GeneraDataType) => {
  return http({
    method: "POST",
    url: "/base/biz/bizWarehouse/updateBizWarehouse",
    data
  });
};
export const updateWarehouseApi = (data: WarehouseManagement.AddForm) => {
  return http({
    method: "post",
    url: "/base/biz/bizWarehouse/updateStatus",
    data
  });
};
